<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
    "http://www.w3.org/TR/1998/REC-html40-19980424/loose.dtd">
<html><head>
    <title>Methods</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <meta name="generator" content="HeaderDoc">
<style type="text/css"><!--a:link {text-decoration: none; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: small; color: #0000ff;}a:visited {text-decoration: none; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: small; color: #0000ff;}a:visited:hover {text-decoration: underline; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: small; color: #ff6600;}a:active {text-decoration: none; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: small; color: #ff6600;}a:hover {text-decoration: underline; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: small; color: #ff6600;}h4 {text-decoration: none; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: tiny; font-weight: bold;}body {text-decoration: none; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: 10pt;}--></style></head><body bgcolor="#ffffff">
<h1><font face="Geneva,Arial,Helvtica">Methods</font></h1><br>
<a name="HeaderDoc_methods"></a>
<dl>
<dt><tt><a href="Methods.html#//apple_ref/occ/instm/HostIPLookupResult/city" target="doc">-city</a></tt></dt>
<dd>Returns the receiver's city name.
 </dd>
<dt><tt><a href="Methods.html#//apple_ref/occ/instm/HostIPLookupResult/country" target="doc">-country</a></tt></dt>
<dd>Returns the receiver's country name.
 </dd>
<dt><tt><a href="Methods.html#//apple_ref/occ/instm/HostIPLookupResult/countryCode" target="doc">-countryCode</a></tt></dt>
<dd>Returns the receiver's country code.
 </dd>
<dt><tt><a href="Methods.html#//apple_ref/occ/instm/HostIPLookupResult/initWithString:" target="doc">-initWithString:</a></tt></dt>
<dd>Initializes a HostIPLookupResult object by parsing a string.
</dd>
<dt><tt><a href="Methods.html#//apple_ref/occ/instm/HostIPLookupResult/latitude" target="doc">-latitude</a></tt></dt>
<dd>Returns the receiver's latitude.
</dd>
<dt><tt><a href="Methods.html#//apple_ref/occ/instm/HostIPLookupResult/longitude" target="doc">-longitude</a></tt></dt>
<dd>Returns the receiver's longitude.
</dd>
<dt><tt><a href="Methods.html#//apple_ref/occ/clm/HostIPLookupResult/resultFromString:" target="doc">+resultFromString:</a></tt></dt>
<dd>Creates a HostIPLookupResult object by parsing a string.
</dd>
<dt><tt><a href="Methods.html#//apple_ref/occ/instm/HostIPLookupResult/setCity:" target="doc">-setCity:</a></tt></dt>
<dd>Sets the receiver's city name.
</dd>
<dt><tt><a href="Methods.html#//apple_ref/occ/instm/HostIPLookupResult/setCountry:" target="doc">-setCountry:</a></tt></dt>
<dd>Sets the receiver's country name.
</dd>
<dt><tt><a href="Methods.html#//apple_ref/occ/instm/HostIPLookupResult/setCountryCode:" target="doc">-setCountryCode:</a></tt></dt>
<dd>Sets the receiver's country code.
</dd>
<dt><tt><a href="Methods.html#//apple_ref/occ/instm/HostIPLookupResult/setLatitude:" target="doc">-setLatitude:</a></tt></dt>
<dd>Sets the receiver's latitude.
</dd>
<dt><tt><a href="Methods.html#//apple_ref/occ/instm/HostIPLookupResult/setLongitude:" target="doc">-setLongitude:</a></tt></dt>
<dd>Sets the receiver's longitude.
</dd>
</dl>
<hr><!-- headerDoc=instm;  uid=//apple_ref/occ/instm/HostIPLookupResult/city;  name=HostIPLookupResult::city -->
<a name="//apple_ref/occ/instm/HostIPLookupResult/city"></a>
<table border="0"  cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5"><h3><a name="city">city</a></h3>
</td></tr></table><hr><dl></dl><p>Returns the receiver's city name.
 </p>
<blockquote><pre>- (<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString" --><font class="type">NSString</font><!-- /a --> <font class="type">*</font>)<font class="param">city</font>;</pre></blockquote>
<dl></dl>
<hr><!-- headerDoc=instm;  uid=//apple_ref/occ/instm/HostIPLookupResult/country;  name=HostIPLookupResult::country -->
<a name="//apple_ref/occ/instm/HostIPLookupResult/country"></a>
<table border="0"  cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5"><h3><a name="country">country</a></h3>
</td></tr></table><hr><dl></dl><p>Returns the receiver's country name.
 </p>
<blockquote><pre>- (<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString" --><font class="type">NSString</font><!-- /a --> <font class="type">*</font>)<font class="param">country</font>;</pre></blockquote>
<dl></dl>
<hr><!-- headerDoc=instm;  uid=//apple_ref/occ/instm/HostIPLookupResult/countryCode;  name=HostIPLookupResult::countryCode -->
<a name="//apple_ref/occ/instm/HostIPLookupResult/countryCode"></a>
<table border="0"  cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5"><h3><a name="countryCode">countryCode</a></h3>
</td></tr></table><hr><dl></dl><p>Returns the receiver's country code.
 </p>
<blockquote><pre>- (<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString" --><font class="type">NSString</font><!-- /a --> <font class="type">*</font>)<font class="param">countryCode</font>;</pre></blockquote>
<dl></dl>
<hr><!-- headerDoc=instm;  uid=//apple_ref/occ/instm/HostIPLookupResult/initWithString:;  name=HostIPLookupResult::initWithString: -->
<a name="//apple_ref/occ/instm/HostIPLookupResult/initWithString:"></a>
<table border="0"  cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5"><h3><a name="initWithString:">initWithString:</a></h3>
</td></tr></table><hr><dl></dl><p>Initializes a HostIPLookupResult object by parsing a string.
</p>
<blockquote><pre>- (<!-- a logicalPath="//apple_ref/occ/cl/id //apple_ref/occ/cl/id //apple_ref/occ/tdef/id //apple_ref/occ/tag/id //apple_ref/occ/econst/id //apple_ref/occ/struct/id //apple_ref/occ/clconst/id" --><font class="type">id</font><!-- /a -->)<!-- a logicalPath="//apple_ref/occ/instm/initWithString //apple_ref/occ/clm/initWithString //apple_ref/occ/intfcm/initWithString //apple_ref/occ/func/initWithString //apple_ref/occ/ftmplt/initWithString //apple_ref/occ/defn/initWithString //apple_ref/occ/macro/initWithString" --><font class="function">initWithString</font><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString" --><font class="type">NSString</font><!-- /a --> <font class="type">*</font>)<font class="param">str</font>;</pre></blockquote>
<h5><font face="Lucida Grande,Helvetica,Arial">Parameter Descriptions</font></h5>
<blockquote>
<dl>
<dt><code><i>str</i></code></dt><dd>A string returned by the hostip.info API lookup.</dd>
</dl>
</blockquote>
<dl><h5><font face="Lucida Grande,Helvetica,Arial">Discussion</font></h5><p>This initialization method sets up a HostIPLookupResult object by parsing
the string representation <tt>str</tt>, in the format returned by a lookup
using the hostip.info API.
</p>
</dl>
<hr><!-- headerDoc=instm;  uid=//apple_ref/occ/instm/HostIPLookupResult/latitude;  name=HostIPLookupResult::latitude -->
<a name="//apple_ref/occ/instm/HostIPLookupResult/latitude"></a>
<table border="0"  cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5"><h3><a name="latitude">latitude</a></h3>
</td></tr></table><hr><dl></dl><p>Returns the receiver's latitude.
</p>
<blockquote><pre>- (<!-- a logicalPath="//apple_ref/occ/cl/float //apple_ref/occ/cl/float //apple_ref/occ/tdef/float //apple_ref/occ/tag/float //apple_ref/occ/econst/float //apple_ref/occ/struct/float //apple_ref/occ/clconst/float" --><font class="type">float</font><!-- /a -->)<font class="param">latitude</font>;</pre></blockquote>
<dl><h5><font face="Lucida Grande,Helvetica,Arial">Discussion</font></h5><p>Latitude is a float value in the range from +90.0 (North Pole) to -90.0 (South Pole), 0.0 being the Equator line.
 </p>
</dl>
<hr><!-- headerDoc=instm;  uid=//apple_ref/occ/instm/HostIPLookupResult/longitude;  name=HostIPLookupResult::longitude -->
<a name="//apple_ref/occ/instm/HostIPLookupResult/longitude"></a>
<table border="0"  cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5"><h3><a name="longitude">longitude</a></h3>
</td></tr></table><hr><dl></dl><p>Returns the receiver's longitude.
</p>
<blockquote><pre>- (<!-- a logicalPath="//apple_ref/occ/cl/float //apple_ref/occ/cl/float //apple_ref/occ/tdef/float //apple_ref/occ/tag/float //apple_ref/occ/econst/float //apple_ref/occ/struct/float //apple_ref/occ/clconst/float" --><font class="type">float</font><!-- /a -->)<font class="param">longitude</font>;</pre></blockquote>
<dl><h5><font face="Lucida Grande,Helvetica,Arial">Discussion</font></h5><p>Longitude is a float value in the range +180.0 (East) -180.0 (West), 0.0 being the Greenwich meridian.
 </p>
</dl>
<hr><!-- headerDoc=clm;  uid=//apple_ref/occ/clm/HostIPLookupResult/resultFromString:;  name=HostIPLookupResult::resultFromString: -->
<a name="//apple_ref/occ/clm/HostIPLookupResult/resultFromString:"></a>
<table border="0"  cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5"><h3><a name="resultFromString:">resultFromString:</a></h3>
</td></tr></table><hr><dl></dl><p>Creates a HostIPLookupResult object by parsing a string.
</p>
<blockquote><pre>+ (<!-- a logicalPath="//apple_ref/occ/cl/HostIPLookupResult //apple_ref/occ/cl/HostIPLookupResult //apple_ref/occ/tdef/HostIPLookupResult //apple_ref/occ/tag/HostIPLookupResult //apple_ref/occ/econst/HostIPLookupResult //apple_ref/occ/struct/HostIPLookupResult //apple_ref/occ/clconst/HostIPLookupResult" --><font class="type">HostIPLookupResult</font><!-- /a --> <font class="type">*</font>)<!-- a logicalPath="//apple_ref/occ/instm/resultFromString //apple_ref/occ/clm/resultFromString //apple_ref/occ/intfcm/resultFromString //apple_ref/occ/func/resultFromString //apple_ref/occ/ftmplt/resultFromString //apple_ref/occ/defn/resultFromString //apple_ref/occ/macro/resultFromString" --><font class="function">resultFromString</font><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString" --><font class="type">NSString</font><!-- /a --> <font class="type">*</font>)<font class="param">str</font>;</pre></blockquote>
<h5><font face="Lucida Grande,Helvetica,Arial">Parameter Descriptions</font></h5>
<blockquote>
<dl>
<dt><code><i>str</i></code></dt><dd>A string returned by the hostip.info API lookup.</dd>
</dl>
</blockquote>
<dl><h5><font face="Lucida Grande,Helvetica,Arial">Discussion</font></h5><p>This factory method creates a HostIPLookupResult object by parsing
the string representation <tt>str</tt>, in the format returned by a lookup
using the hostip.info API.
</p>
</dl>
<hr><!-- headerDoc=instm;  uid=//apple_ref/occ/instm/HostIPLookupResult/setCity:;  name=HostIPLookupResult::setCity: -->
<a name="//apple_ref/occ/instm/HostIPLookupResult/setCity:"></a>
<table border="0"  cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5"><h3><a name="setCity:">setCity:</a></h3>
</td></tr></table><hr><dl></dl><p>Sets the receiver's city name.
</p>
<blockquote><pre>- (<!-- a logicalPath="//apple_ref/occ/cl/void //apple_ref/occ/cl/void //apple_ref/occ/tdef/void //apple_ref/occ/tag/void //apple_ref/occ/econst/void //apple_ref/occ/struct/void //apple_ref/occ/clconst/void" --><font class="type">void</font><!-- /a -->)<!-- a logicalPath="//apple_ref/occ/instm/setCity //apple_ref/occ/clm/setCity //apple_ref/occ/intfcm/setCity //apple_ref/occ/func/setCity //apple_ref/occ/ftmplt/setCity //apple_ref/occ/defn/setCity //apple_ref/occ/macro/setCity" --><font class="function">setCity</font><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString" --><font class="type">NSString</font><!-- /a --> <font class="type">*</font>)<font class="param">city</font>;</pre></blockquote>
<h5><font face="Lucida Grande,Helvetica,Arial">Parameter Descriptions</font></h5>
<blockquote>
<dl>
<dt><code><i>city</i></code></dt><dd>The city name.</dd>
</dl>
</blockquote>
<dl></dl>
<hr><!-- headerDoc=instm;  uid=//apple_ref/occ/instm/HostIPLookupResult/setCountry:;  name=HostIPLookupResult::setCountry: -->
<a name="//apple_ref/occ/instm/HostIPLookupResult/setCountry:"></a>
<table border="0"  cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5"><h3><a name="setCountry:">setCountry:</a></h3>
</td></tr></table><hr><dl></dl><p>Sets the receiver's country name.
</p>
<blockquote><pre>- (<!-- a logicalPath="//apple_ref/occ/cl/void //apple_ref/occ/cl/void //apple_ref/occ/tdef/void //apple_ref/occ/tag/void //apple_ref/occ/econst/void //apple_ref/occ/struct/void //apple_ref/occ/clconst/void" --><font class="type">void</font><!-- /a -->)<!-- a logicalPath="//apple_ref/occ/instm/setCountry //apple_ref/occ/clm/setCountry //apple_ref/occ/intfcm/setCountry //apple_ref/occ/func/setCountry //apple_ref/occ/ftmplt/setCountry //apple_ref/occ/defn/setCountry //apple_ref/occ/macro/setCountry" --><font class="function">setCountry</font><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString" --><font class="type">NSString</font><!-- /a --> <font class="type">*</font>)<font class="param">country</font>;</pre></blockquote>
<h5><font face="Lucida Grande,Helvetica,Arial">Parameter Descriptions</font></h5>
<blockquote>
<dl>
<dt><code><i>country</i></code></dt><dd>The country name.</dd>
</dl>
</blockquote>
<dl></dl>
<hr><!-- headerDoc=instm;  uid=//apple_ref/occ/instm/HostIPLookupResult/setCountryCode:;  name=HostIPLookupResult::setCountryCode: -->
<a name="//apple_ref/occ/instm/HostIPLookupResult/setCountryCode:"></a>
<table border="0"  cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5"><h3><a name="setCountryCode:">setCountryCode:</a></h3>
</td></tr></table><hr><dl></dl><p>Sets the receiver's country code.
</p>
<blockquote><pre>- (<!-- a logicalPath="//apple_ref/occ/cl/void //apple_ref/occ/cl/void //apple_ref/occ/tdef/void //apple_ref/occ/tag/void //apple_ref/occ/econst/void //apple_ref/occ/struct/void //apple_ref/occ/clconst/void" --><font class="type">void</font><!-- /a -->)<!-- a logicalPath="//apple_ref/occ/instm/setCountryCode //apple_ref/occ/clm/setCountryCode //apple_ref/occ/intfcm/setCountryCode //apple_ref/occ/func/setCountryCode //apple_ref/occ/ftmplt/setCountryCode //apple_ref/occ/defn/setCountryCode //apple_ref/occ/macro/setCountryCode" --><font class="function">setCountryCode</font><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString" --><font class="type">NSString</font><!-- /a --> <font class="type">*</font>)<font class="param">code</font>;</pre></blockquote>
<h5><font face="Lucida Grande,Helvetica,Arial">Parameter Descriptions</font></h5>
<blockquote>
<dl>
<dt><code><i>code</i></code></dt><dd>The country code.</dd>
</dl>
</blockquote>
<dl></dl>
<hr><!-- headerDoc=instm;  uid=//apple_ref/occ/instm/HostIPLookupResult/setLatitude:;  name=HostIPLookupResult::setLatitude: -->
<a name="//apple_ref/occ/instm/HostIPLookupResult/setLatitude:"></a>
<table border="0"  cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5"><h3><a name="setLatitude:">setLatitude:</a></h3>
</td></tr></table><hr><dl></dl><p>Sets the receiver's latitude.
</p>
<blockquote><pre>- (<!-- a logicalPath="//apple_ref/occ/cl/void //apple_ref/occ/cl/void //apple_ref/occ/tdef/void //apple_ref/occ/tag/void //apple_ref/occ/econst/void //apple_ref/occ/struct/void //apple_ref/occ/clconst/void" --><font class="type">void</font><!-- /a -->)<!-- a logicalPath="//apple_ref/occ/instm/setLatitude //apple_ref/occ/clm/setLatitude //apple_ref/occ/intfcm/setLatitude //apple_ref/occ/func/setLatitude //apple_ref/occ/ftmplt/setLatitude //apple_ref/occ/defn/setLatitude //apple_ref/occ/macro/setLatitude" --><font class="function">setLatitude</font><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/float //apple_ref/occ/cl/float //apple_ref/occ/tdef/float //apple_ref/occ/tag/float //apple_ref/occ/econst/float //apple_ref/occ/struct/float //apple_ref/occ/clconst/float" --><font class="type">float</font><!-- /a -->)<font class="param">lat</font>;</pre></blockquote>
<h5><font face="Lucida Grande,Helvetica,Arial">Parameter Descriptions</font></h5>
<blockquote>
<dl>
<dt><code><i>lat</i></code></dt><dd>A latitude value.</dd>
</dl>
</blockquote>
<dl><h5><font face="Lucida Grande,Helvetica,Arial">Discussion</font></h5><p>Latitude is a float value in the range from +90.0 (North Pole) to -90.0 (South Pole), 0.0 being the Equator line.
</p>
</dl>
<hr><!-- headerDoc=instm;  uid=//apple_ref/occ/instm/HostIPLookupResult/setLongitude:;  name=HostIPLookupResult::setLongitude: -->
<a name="//apple_ref/occ/instm/HostIPLookupResult/setLongitude:"></a>
<table border="0"  cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5"><h3><a name="setLongitude:">setLongitude:</a></h3>
</td></tr></table><hr><dl></dl><p>Sets the receiver's longitude.
</p>
<blockquote><pre>- (<!-- a logicalPath="//apple_ref/occ/cl/void //apple_ref/occ/cl/void //apple_ref/occ/tdef/void //apple_ref/occ/tag/void //apple_ref/occ/econst/void //apple_ref/occ/struct/void //apple_ref/occ/clconst/void" --><font class="type">void</font><!-- /a -->)<!-- a logicalPath="//apple_ref/occ/instm/setLongitude //apple_ref/occ/clm/setLongitude //apple_ref/occ/intfcm/setLongitude //apple_ref/occ/func/setLongitude //apple_ref/occ/ftmplt/setLongitude //apple_ref/occ/defn/setLongitude //apple_ref/occ/macro/setLongitude" --><font class="function">setLongitude</font><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/float //apple_ref/occ/cl/float //apple_ref/occ/tdef/float //apple_ref/occ/tag/float //apple_ref/occ/econst/float //apple_ref/occ/struct/float //apple_ref/occ/clconst/float" --><font class="type">float</font><!-- /a -->)<font class="param">lon</font>;</pre></blockquote>
<h5><font face="Lucida Grande,Helvetica,Arial">Parameter Descriptions</font></h5>
<blockquote>
<dl>
<dt><code><i>lon</i></code></dt><dd>A longitude value.</dd>
</dl>
</blockquote>
<dl><h5><font face="Lucida Grande,Helvetica,Arial">Discussion</font></h5><p>Longitude is a float value in the range +180.0 (East) -180.0 (West), 0.0 being the Greenwich meridian.
</p>
</dl>
<p>(Last Updated April 29, 2008)
</p></body></html>
